import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import "normalize.css/normalize.css"

Vue.config.productionTip = false
import VueParticles from 'vue-particles'
// 注册一个全局自定义指令 `v-focus`
Vue.directive('hasPerm', {
    // 当被绑定的元素插入到 DOM 中时……
    inserted: function (el, binding) {
        var valueElement = binding.value[0];
        var btnList = JSON.parse(localStorage.getItem("btn"));
        let b = btnList.some(item => item.permSign == valueElement)
        if (!b) {
            el.remove();
        }
        _


    }
})
Vue.use(VueParticles)
Vue.use(ElementUI);
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
